<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<style type='text/css'>
.pagination {
	padding: 5px;
	float: right;
}

.pagination a,.pagination a:link,.pagination a:visited {
	padding: 2px 5px 2px 5px;
	margin: 2px;
	font-size: 12px;
	border: 1px solid #aad;
	text-decoration: none;
	color: #2664b1;
}

.pagination a:hover,.pagination a:active {
	border: 1px solid #069;
	color: #000;
	text-decoration: none;
}

.pagination span.current {
	font-size: 12px;
	padding: 2px 5px 2px 5px;
	margin: 2px;
	border: 1px solid #069;
	font-weight: bold;
	background-color: #2664b1;
	color: #FFF;
}

.pagination span.disabled {
	font-size: 12px;
	padding: 2px 5px 2px 5px;
	margin: 2px;
	border: 1px solid #eee;
	color: #ddd;
}
</style>




<div class='pagination'>
	共有
	<s:property value="pageView.totalrecord" />
	条记录,当前第
	<s:property value="pageView.currentpage" />
	页,共
	<s:property value="pageView.totalpage" />
	页
	<s:if test="pageView.currentpage != 1">
		<s:a href="javascript:subPagintion(%{1});">
											首页
										</s:a>
		<s:a href="javascript:subPagintion(%{pageView.currentpage-1});">
											上一页
										</s:a>
	</s:if>
	<s:else>
		<span class='disabled prev_page'>首页</span>
		<span class='disabled prev_page'>上一页</span>
	</s:else>

	<s:iterator begin="pageView.pageindex.startindex"
		end="pageView.pageindex.endindex" var="s">
		<s:if test="#s <= pageView.totalpage">
			<s:if test="#s != pageView.currentpage">
				<s:a href="javascript:subPagintion(%{s});">
					<s:property value="#s" />
				</s:a>
			</s:if>
			<s:else>
				<span class='current'><s:property value="#s" /> </span>
			</s:else>
		</s:if>
	</s:iterator>
	<s:if test="pageView.currentpage != pageView.totalpage">
		<s:a href="javascript:subPagintion(%{pageView.currentpage+1});">
											下一页
		</s:a>
		<s:a href="javascript:subPagintion(%{pageView.totalpage});">
											末页
		</s:a>
	</s:if>
	<s:else>
		<span class='disabled prev_page'>下一页</span>
		<span class='disabled prev_page'>末页</span>
	</s:else>
</div>





